<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
                xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:f="http://java.sun.com/jsf/core"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:p="http://primefaces.org/ui"
                template="/WEB-INF/templates/lista.xhtml">
    <ui:param name="pPageTitle" value="${label['motivo.titulo']}"/>
    <ui:param name="pAction" value="cadastrarMotivo"/>
    <ui:param name="pManagedBean" value="#{motivoView}"/>
    <ui:param name="pTarget" value="#{motivoView.motivo}"/>
    <ui:param name="pListaRecords" value="#{motivoView.motivos}"/>
    <ui:param name="pMsgConfirmationObject" value="motivo"/>
    <ui:param name="pMsgConfirmationDescription" value="#{motivoView.motivo.descricao}"/>

    <ui:define name="dataTable">
        <p:column sortBy="#{obj.descricao}" headerText="${label['motivo.descricao']}" 
                  filterBy="#{obj.descricao}" filterMatchMode="contains">
            <h:outputText value="#{obj.descricao}"/>
        </p:column>
    </ui:define>

</ui:composition>
